<p class="Head3"><help:paragraphinfo state="U" number="5" xmlns:help="http://openoffice.org/2000/help"/><help:key-word value="libraries; creating" tag="kw66501_13" xmlns:help="http://openoffice.org/2000/help"/>Creating a New Library</p>
<ol class="L1">
<li class="">
<p class="P2"><help:paragraphinfo state="U" number="6" xmlns:help="http://openoffice.org/2000/help"/>Choose <span class="T1">Tools - Macros - Macro</span> and click <span class="T1">Organizer</span> or click the <span class="T1">Modules</span> icon in the Basic IDE to open the <span class="T1">Macro Organizer</span> dialog.</p>
</li>
<li class="">
<p class="P2"><help:paragraphinfo state="U" number="8" xmlns:help="http://openoffice.org/2000/help"/>Click the <span class="T1">Libraries</span> tab.</p>
</li>
<li class="">
<p class="P2"><help:paragraphinfo state="U" number="9" xmlns:help="http://openoffice.org/2000/help"/>Select the object to which you want to attach the library from the <span class="T1">Application/Document</span> list. If you select <span class="T1">soffice</span> the library will belong to the <help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname> application and will be available for all documents. If you select a document the library will be attached to this document and only available from there.</p>
</li>
<li class="">
<p class="P2"><help:paragraphinfo state="U" number="10" xmlns:help="http://openoffice.org/2000/help"/>Click <span class="T1">New</span> and insert a name to create a new library.</p>
<p class="P3"><help:paragraphinfo state="U" number="49" xmlns:help="http://openoffice.org/2000/help"/>Choose <span class="T1">Tools - Macros - Macro</span> and click <span class="T1">Organizer</span> or click the <span class="T1">Modules</span> icon in the Basic IDE to open the <span class="T1">Macro Organizer</span> dialog.</p>
</li>
<li class="">
<p class="P3"><help:paragraphinfo state="U" number="50" xmlns:help="http://openoffice.org/2000/help"/>Click the <span class="T1">Libraries</span> tab.</p>
</li>
<li class="">
<p class="P3"><help:paragraphinfo state="U" number="51" xmlns:help="http://openoffice.org/2000/help"/>Select the object to which you want to attach the library from the <span class="T1">Application/Document</span> list. If you select <span class="T1">soffice</span> the library will belong to the <help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname> application and will be available for all documents. If you select a document the library will be attached to this document and only available from there.</p>
</li>
<li class="">
<p class="P3"><help:paragraphinfo state="U" number="52" xmlns:help="http://openoffice.org/2000/help"/>Click <span class="T1">Append</span> and select an external library to append.</p>
</li>
<li class="">
<p class="P3"><help:paragraphinfo state="U" number="53" xmlns:help="http://openoffice.org/2000/help"/>Select all libraries to be appended in the <span class="T1">Append Libraries</span> dialog. The dialog displays all libraries that are contained in the selected file.</p>
</li>
<li class="">
<p class="P3"><help:paragraphinfo state="U" number="54" xmlns:help="http://openoffice.org/2000/help"/>If you want to insert the library as a reference only check the <span class="T1">Insert as reference (read-only)</span> box. Read-only libraries are fully functional but cannot be modified in the Basic IDE.</p>
</li>
<li class="">
<p class="P3"><help:paragraphinfo state="U" number="55" xmlns:help="http://openoffice.org/2000/help"/>Check the <span class="T1">Replace existing libraries</span> box if you want existing libraries of the same name to be overwritten.</p>
</li>
<li class="">
<p class="P3"><help:paragraphinfo state="U" number="56" xmlns:help="http://openoffice.org/2000/help"/>Click <span class="T1">OK</span> to append the library.</p>
<p class="P3"><help:paragraphinfo state="U" number="18" xmlns:help="http://openoffice.org/2000/help"/>Choose <span class="T1">Tools - Macros - Macro</span> and click <span class="T1">Organizer</span> or click the <span class="T1">Modules</span> icon in the Basic IDE to open the <span class="T1">Macro Organizer</span> dialog.</p>
</li>
<li class="">
<p class="P3"><help:paragraphinfo state="U" number="57" xmlns:help="http://openoffice.org/2000/help"/>Click the <span class="T1">Libraries</span> tab.</p>
</li>
<li class="">
<p class="P3"><help:paragraphinfo state="U" number="58" xmlns:help="http://openoffice.org/2000/help"/>Select the object with the library to be deleted from the <span class="T1">Application/Document</span> list.</p>
<p class="TextInTable"><help:paragraphinfo state="U" number="19" xmlns:help="http://openoffice.org/2000/help"/>Deleting a library permanently deletes all existing modules and corresponding procedures and functions.</p>
<p class="TextInTable"><help:paragraphinfo state="U" number="59" xmlns:help="http://openoffice.org/2000/help"/>You cannot delete the default library named "Standard".</p>
<p class="TextInTable"><help:paragraphinfo state="U" number="60" xmlns:help="http://openoffice.org/2000/help"/>If you delete a library that was <help:link Id="68326" xmlns:help="http://openoffice.org/2000/help">inserted as reference</help:link> only the reference is deleted but not the library itself.</p>
</span></th></tr></table>
<p class="Head2"><help:paragraphinfo state="U" number="21" xmlns:help="http://openoffice.org/2000/help"/>Organizing Modules and Dialogs</p>
<p class="Head3"><help:paragraphinfo state="U" number="61" xmlns:help="http://openoffice.org/2000/help"/><help:key-word value="modules; creating" tag="kw66501_9" xmlns:help="http://openoffice.org/2000/help"/><help:key-word value="dialogs; creating" tag="kw66501_8" xmlns:help="http://openoffice.org/2000/help"/>Creating a New Module or Dialog</p>
<ol class="L3">
<li class="">
<p class="P4"><help:paragraphinfo state="U" number="62" xmlns:help="http://openoffice.org/2000/help"/>Choose <span class="T1">Tools - Macros - Macro</span> and click <span class="T1">Organizer</span> or click the <span class="T1">Modules</span> icon in the Basic IDE to open the <span class="T1">Macro Organizer</span> dialog.</p>
</li>
<li class="">
<p class="P4"><help:paragraphinfo state="U" number="63" xmlns:help="http://openoffice.org/2000/help"/>Click the <span class="T1">Modules</span> tab.</p>
</li>
<li class="">
<p class="P4"><help:paragraphinfo state="U" number="64" xmlns:help="http://openoffice.org/2000/help"/>Select the library where the module will be inserted and click <span class="T1">New Module</span> or <span class="T1">New Dialog</span>.</p>
</li>
<li class="">
<p class="P4"><help:paragraphinfo state="U" number="65" xmlns:help="http://openoffice.org/2000/help"/>Enter a name for the module or the dialog and click <span class="T1">OK</span>.</p>
</li>
</ol>
<p class="Head3"><help:paragraphinfo state="U" number="25" xmlns:help="http://openoffice.org/2000/help"/><help:key-word value="modules; renaming" tag="kw66501_7" xmlns:help="http://openoffice.org/2000/help"/><help:key-word value="dialogs; renaming" tag="kw66501_6" xmlns:help="http://openoffice.org/2000/help"/>Renaming a Module or Dialog</p>
<ol class="L4">
<li class="">
<p class="P5"><help:paragraphinfo state="U" number="66" xmlns:help="http://openoffice.org/2000/help"/>Choose <span class="T1">Tools - Macros - Macro</span> to open the <span class="T1">Macro </span>dialog.</p>
</li>
<li class="">
<p class="P5"><help:paragraphinfo state="U" number="67" xmlns:help="http://openoffice.org/2000/help"/>Select the module to be renamed from the <span class="T1">Macro from</span> list and click <span class="T1">Edit</span>.</p>
</li>
<li class="">
<p class="P5"><help:paragraphinfo state="U" number="27" xmlns:help="http://openoffice.org/2000/help"/>In the Basic IDE, right-click the name of the module or dialog in the tabs at the bottom of the screen and type in the new name.</p>
</li>
<li class="">
<p class="P5"><help:paragraphinfo state="U" number="28" xmlns:help="http://openoffice.org/2000/help"/>Press Enter to confirm your changes.</p>
</li>
</ol>
<p class="Head3"><help:paragraphinfo state="U" number="29" xmlns:help="http://openoffice.org/2000/help"/><help:key-word value="modules; deleting" tag="kw66501_5" xmlns:help="http://openoffice.org/2000/help"/><help:key-word value="dialogs; deleting" tag="kw66501_4" xmlns:help="http://openoffice.org/2000/help"/>Deleting a Module or Dialog</p>
<ol class="L5">
<li class="">
<p class="P6"><help:paragraphinfo state="U" number="68" xmlns:help="http://openoffice.org/2000/help"/>Choose <span class="T1">Tools - Macros - Macro</span> and click <span class="T1">Organizer</span> or click the <span class="T1">Modules</span> icon in the Basic IDE to open the <span class="T1">Macro Organizer</span> dialog.</p>
</li>
<li class="">
<p class="P6"><help:paragraphinfo state="U" number="69" xmlns:help="http://openoffice.org/2000/help"/>Click the <span class="T1">Modules</span> tab.</p>
</li>
<li class="">
<p class="P6"><help:paragraphinfo state="U" number="30" xmlns:help="http://openoffice.org/2000/help"/>Select the module to be deleted from the <span class="T1">Module/Dialog</span> list. Double-click an entry to reveal sub-entries, if required.</p>
<p class="TextInTable"><help:paragraphinfo state="U" number="31" xmlns:help="http://openoffice.org/2000/help"/>Deleting a module permanently deletes all existing procedures and functions in that module.</p>
</span></th></tr></table>
<p class="Head2"><help:paragraphinfo state="U" number="33" xmlns:help="http://openoffice.org/2000/help"/>Organizing Projects among Documents or Templates</p>
<p class="Head3"><help:paragraphinfo state="U" number="36" xmlns:help="http://openoffice.org/2000/help"/><help:key-word value="modules; moving" tag="kw66501_3" xmlns:help="http://openoffice.org/2000/help"/><help:key-word value="modules; copying" tag="kw66501_2" xmlns:help="http://openoffice.org/2000/help"/>Moving or copying modules between documents, templates and the application.</p>
<ol class="L6">
<li class="">
<p class="P7"><help:paragraphinfo state="U" number="37" xmlns:help="http://openoffice.org/2000/help"/>Open all documents or templates among which you want to move or copy the modules or dialogs.</p>
</li>
<li class="">
<p class="P7"><help:paragraphinfo state="U" number="38" xmlns:help="http://openoffice.org/2000/help"/>Choose <span class="T1">Tools - Macros - Macro</span> and click <span class="T1">Organizer</span> or click the <span class="T1">Modules</span> icon in the Basic IDE to open the <span class="T1">Macro Organizer</span> dialog.</p>
</li>
<li class="">
<p class="P7"><help:paragraphinfo state="U" number="39" xmlns:help="http://openoffice.org/2000/help"/>To move a module or dialog to another document, click the corresponding object in the <span class="T1">Module/Dialog</span> list and drag it to the desired position. A horizontal line indicates the target position of the current object while dragging. Hold the <help:switch select="System" xmlns:help="http://openoffice.org/2000/help"><help:case select="MAC">Option</help:case><help:default>Ctrl</help:default></help:switch> key while dragging to copy the object instead of moving it.</p>